﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Practices.Unity;
using TreeBuilder.Contracts;
using TreeBuilder.Services;
using TreeBuilder.ViewModels;

namespace TreeBuilder
{
    public static class ContainerLoader
    {
        private static IUnityContainer container;

        static ContainerLoader()
        {
            container = new UnityContainer();

            container.RegisterType<ITreeBuilderService, TreeBuilderService>();
            container.RegisterType(typeof(ITreeBuilderViewModel), typeof(TreeBuilderViewModel));
        }

        public static IUnityContainer Container
        {
            get
            {
                return container;
            }
        }
    
    }
}
